-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new interaction channel attribute #1621
base: master
Are you sure you want to change the base?
Conversation
I am not sure whether to get rid of I would get rid of them, but I would like more feedback :) |
@@ -2542,7 +2542,7 @@ def deserialize_command_interaction( | |||
guild_id=guild_id, | |||
guild_locale=locales.Locale(payload["guild_locale"]) if "guild_locale" in payload else None, | |||
locale=locales.Locale(payload["locale"]), | |||
channel_id=snowflakes.Snowflake(payload["channel_id"]), | |||
channel=self.deserialize_partial_channel(payload["channel"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the channel objects here include a lot more fields than just the partial channel's fields
e.g.
{
"type": 0,
"topic": null,
"theme_color": null,
"rate_limit_per_user": 0,
"position": 20,
"permissions": "140737488355327",
"parent_id": "561885448721399808",
"nsfw": false,
"name": "dwads",
"last_message_id": "1114922806820479057",
"id": "717586538925523004",
"icon_emoji": {
"name": "\ud83e\udd16",
"id": null
},
"guild_id": "561884984214814744",
"flags": 0,
"default_auto_archive_duration": 60
}
{
"type": 1,
"last_message_id": "1096465893028003910",
"id": "463185043796262922",
"flags": 0
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was also mentioned in the PR which documented this field discord/discord-api-docs#6051 (comment), just another case of Discord having shit docs tbh
Checklist
nox
and all the pipelines have passed.